const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: "127.0.0.1",
    port: 8080,
    proxy: {
      "/api": {
        target: "http://sph-h5-api.atguigu.cn",
        // pathRewrite:{'^/api':''},
      },
    },
  },
  configureWebpack: {
    externals: {
      'vue': 'Vue',
      'vue-router':'VueRouter',
      'axios':'axios',
      'vuex':'Vuex',
      'mockjs':'Mock'
    }
  }
});
